package java7.tryWith;

public class Basic implements AutoCloseable{
	public static void main(String[] args) {
		try(Basic basic = new Basic();) {
			basic.getClass();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

	@Override
	public void close() throws Exception {
		System.out.println("i am closed!");
	}
}
